home *** CD-ROM | disk | FTP | other *** search
/ PC Open 107 / PC Open 107 CD 1.bin / CD1 / INTERNET / Abilon / InstallAB.exe / Style / Default (Large Font).xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-08-30  |  2.2 KB  |  65 lines

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="xml" omit-xml-declaration="yes"/>
  4. <xsl:variable name="common-styles">
  5. <style type="text/css">
  6. html{border: 4px solid gray; }    
  7. body.twopanel{margin: 6px;padding:0px;font-family: sans-serif;overflow: auto;}
  8. table.column{background-color:#B6BDD2;border:1px #000088 solid;width:100%;font-size:140%;}
  9. div.columntitle{font-weight: bold; margin: 4px 2px 2px 2px; }
  10. div.itemtitle{font-weight: bold; margin: 4px 2px 2px 2px;}
  11. div.contents{ padding: 22px 22px 22px 22px; text-align: justify;font-size:140%;}
  12. div.itemcomments{font-size: small;border-top: 1px dotted silver; margin-top: 14px}
  13. a:link        {color: #1a20a1;text-decoration: none;}
  14. a:hover        {color: #00a100;text-decoration: none;}
  15. </style>
  16. </xsl:variable>
  17.  
  18.  
  19. <xsl:template match="//record">
  20.     <html>
  21.     <head>
  22.         <title>News Item</title>
  23.         <xsl:copy-of select="$common-styles"/>
  24.     </head>
  25.     <body>
  26.     <table class="column">
  27.     <tr>
  28.         <td>
  29.         <div class="columntitle" align="top">
  30.             <a href="{feed/link}"><xsl:value-of select="feed/title" disable-output-escaping="yes"/></a><br/>
  31.         </div>
  32.         <div class="itemtitle" align="top">
  33.             <a href="{item/link}"><xsl:value-of select="item/title" disable-output-escaping="yes"/></a>
  34.         </div>
  35.         </td>
  36.         <xsl:if test="feed/image">      
  37.             <td align="right">
  38.             <xsl:variable name="imgsrc" select="feed/image"/>
  39.             <img src="{$imgsrc}"/>
  40.             </td>
  41.         </xsl:if>            
  42.     </tr>
  43.     </table>
  44.  
  45.         <div class="contents">
  46.             <xsl:value-of select="item/content" disable-output-escaping="yes"/>
  47.         </div>
  48.         <div class="footer"><xsl:value-of select="item/published" disable-output-escaping="yes"/></div>
  49.  
  50.  
  51.         <div class="footer">
  52.         <xsl:if test="item/comments">
  53.             <xsl:variable name="commentlink" select="item/comments/@link"/>
  54.             <a href="{$commentlink}"><xsl:value-of select="item/comments/@text"/></a>
  55.         </xsl:if>            
  56.         <xsl:if test="item/reply">
  57.             <xsl:variable name="replylink" select="item/reply/@link"/>
  58.             <xsl:text> </xsl:text><a href="{$replylink}"><xsl:value-of select="item/reply/@text"/></a>
  59.         </xsl:if>            
  60.         </div>    
  61.     </body>
  62.     </html>
  63. </xsl:template>
  64.  
  65. </xsl:stylesheet>